package com.office.supplies.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.office.supplies.pojo.Buy;
import com.office.supplies.pojo.dto.SelectBuyListDTO;
import com.office.supplies.pojo.vo.BuyListVO;

/**
 * @Author admin
 * @Description TODO
 * @Date 2023/12/11/0:53
 */
public interface BuyService extends IService<Buy> {

    /**
     * 采购商品
     *
     * @param buy Buy
     */
    void butGoods(Buy buy);


    /**
     * 删除采购信息
     *
     * @param buy Buy
     */
    void deleteBuyInfo(Buy buy);

    /**
     * 条件分页查询采购订单
     *
     * @param pageNum          Integer
     * @param pageSize         Integer
     * @param selectBuyListDTO SelectBuyListDTO
     * @return PageInfo<BuyListVO>
     */
    PageInfo<BuyListVO> getBuyListByPageAndCondtion(Integer pageNum, Integer pageSize,
                                                    SelectBuyListDTO selectBuyListDTO);

    /**
     * 修改采购订单
     *
     * @param buy Buy
     */
    void updateBuyInfo(Buy buy);

    void pass(Long id);
}
